package cn.iocoder.yudao.module.wine.controller.app.commentreport;

import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;

import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;

import javax.validation.*;

import cn.iocoder.yudao.framework.common.pojo.CommonResult;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.*;

import cn.iocoder.yudao.module.wine.controller.app.commentreport.vo.*;
import cn.iocoder.yudao.module.wine.service.commentreport.CommentReportService;

@Tag(name = "用户 APP - 评论举报记录")
@RestController
@RequestMapping("/wine/comment-report")
@Validated
public class AppCommentReportController {

    @Resource
    private CommentReportService commentReportService;

    @PostMapping("/report")
    @Operation(summary = "举报评论")
    public CommonResult<Long> commentReport(@Valid @RequestBody AppCommentReportSaveReqVO createReqVO) {
        return success(commentReportService.appCreateCommentReport(createReqVO));
    }


}
